package subject;

import java.io.*;
import java.util.*;

public class Subject implements Serializable {
	// 和表s_subject对应
	/**
	 * 
	 */
	private static final long serialVersionUID = -7642230458288517025L;

	private long id, classhour, gradeid;
	private String subjectname, grade;

	public Subject() {
	}

	public long getId() {
		return id;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getClasshour() {
		return classhour;
	}

	public void setClasshour(long classhour) {
		this.classhour = classhour;
	}

	public long getGradeid() {
		return gradeid;
	}

	public void setGradeid(long gradeid) {
		this.gradeid = gradeid;
	}

	public String getSubjectname() {
		return subjectname;
	}

	public void setSubjectname(String subjectname) {
		this.subjectname = subjectname;
	}

	@Override
	public String toString() {
		return "Subject [id=" + id + ", classhour=" + classhour + ", subjectname=" + subjectname + ", grade=" + grade
				+ "]";
	}

}
